Skip to content

feat: refine menu-item focus states and sidebar story layouts#606

Merged
robsongajunior merged 20 commits into
mainfrom
feat-menu-item-and-sidebar
Jun 8, 2026
Merged

feat: refine menu-item focus states and sidebar story layouts#606
robsongajunior merged 20 commits into
mainfrom
feat-menu-item-and-sidebar

Conversation

@gab-az

@gab-az gab-az commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • refine MenuItem interaction behavior: focus ring lives on the real interactive element (a/button), icon colors now respond to selected/hover/focus/disabled states, and non-behavioral attrs are forwarded safely
  • simplify MenuItem stories to a leaner set and fix controls behavior for the default render template
  • remove default spacing ownership from Sidebar regions and update sidebar/story templates to define spacing in slot content, including a new header+profile footer layout based on the provided Figma node

Test plan

  • Pre-commit hooks passed on both commits (eslint --fix + prettier --write)
  • Run pnpm storybook:dev and verify:
    • Webkit/Navigation/MenuItem focus/hover/selected icon behavior
    • Webkit/Layout/Sidebar stories: content-only, with header search, and with header+profile footer
  • Run pnpm storybook:build

Made with Cursor

gablisboa and others added 2 commits May 27, 2026 17:59
Align menu-item focus and icon state behavior with selected/default semantics and simplify story coverage to the essential states.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move sidebar spacing ownership to slot content and refresh Storybook variants to cover content-only, header search, and profile footer layouts from the latest design.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gab-az gab-az requested a review from a team as a code owner May 27, 2026 21:00
isaquebock
isaquebock previously approved these changes May 27, 2026
gablisboa and others added 2 commits May 27, 2026 18:04
Render sidebar examples from a console-like menu data model so story variants stay aligned with production navigation structure.

Co-authored-by: Cursor <cursoragent@cursor.com>
pauloSF0
pauloSF0 previously approved these changes May 28, 2026
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
Restore plain string/boolean summaries in docs tables per review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
gablisboa and others added 10 commits May 28, 2026 12:48
Support top, bottom, left, right, and auto sides with collision-aware
positioning so panels open where space allows.

Co-authored-by: Cursor <cursoragent@cursor.com>
Expose auto, top, bottom, left, and right in argTypes for the overlay menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
Wire the sidebar profile trigger to DropdownMenu with side top, Avatar
WithImage pattern, and the Figma account menu items.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move vertical scrolling into Sidebar via ScrollArea, drop SidebarGroup
scroll prop, and apply header/nav/footer spacing on the shell regions
instead of consumer content wrappers.

Co-authored-by: Cursor <cursoragent@cursor.com>
Refresh Purpose, Usage composition snippet, ariaLabel prop, and
Storybook story list to match the region-based layout API.

Co-authored-by: Cursor <cursoragent@cursor.com>
Inject spec Usage into Sidebar docs, drop content padding wrappers,
remove SidebarGroup scroll usage, and note ScrollArea is built into Sidebar.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove pb-0 override so the header region keeps consistent spacing
on all sides.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use data-side attribute selectors instead of BEM --modifier classes so
eslint passes, and drop href defaultValue from MenuItem docs per review.
Sidebar profile footer story imported the old content/avatar path
removed when avatar moved to a top-level export.
@gab-az gab-az requested a review from robsongajunior June 3, 2026 20:37
Comment thread packages/webkit/src/components/layout/sidebar/sidebar-group.vue Outdated
Comment thread apps/storybook/src/stories/webkit/navigation/MenuItem.stories.js Outdated
robsongajunior
robsongajunior previously approved these changes Jun 8, 2026
robsongajunior
robsongajunior previously approved these changes Jun 8, 2026
@robsongajunior robsongajunior merged commit 1840945 into main Jun 8, 2026
11 checks passed
robsongajunior pushed a commit that referenced this pull request Jun 8, 2026
## [3.5.0](https://github.com/aziontech/webkit/compare/@aziontech/webkit@3.4.2...@aziontech/webkit@3.5.0) (2026-06-08)

### Features

* refine menu-item focus states and sidebar story layouts ([#606](#606)) ([1840945](1840945))
@robsongajunior

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@robsongajunior robsongajunior deleted the feat-menu-item-and-sidebar branch June 12, 2026 14:09
robsongajunior pushed a commit that referenced this pull request Jun 12, 2026
## [2.4.0](https://github.com/aziontech/webkit/compare/@aziontech/theme@2.3.2...@aziontech/theme@2.4.0) (2026-06-12)

### Features

* Link Figma alignment, MiniButton, and dialog spec checksum ([#623](#623)) ([c576bf1](c576bf1))
* refine menu-item focus states and sidebar story layouts ([#606](#606)) ([1840945](1840945))

### Bug Fixes

* import theme exported primitive ([#639](#639)) ([d5342d2](d5342d2))
* remove redundant/unused buttons ([#640](#640)) ([f25a4e5](f25a4e5))
@robsongajunior

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

5 participants